var axios = require('axios');
var MockAdapter = require('axios-mock-adapter');
var mock = new MockAdapter(axios);

mock.onGet('/v1/api/article/cotnent?id=1').reply(200,{
    title:'如何锻炼完美身材1',
    content:'111如何判断自己的髋屈肌（髂腰肌）是否过紧呢？可以用托马斯测试（THOMAS TEST）自测一下<br>'
    +'有关托马斯测试的内容可以翻阅《基础肌动学》髋关节部分或看这篇文章：<br>'
    +'湯瑪斯測試(Thomas test)：髖屈肌的柔軟度如果存在髋屈肌过紧,<br>'
    +'还能不能做仰卧起坐这个动作呢？答案是可以，只不过你需要一些肌肉松解和动作调整。）'
})
mock.onGet('/v1/api/article/cotnent?id=2').reply(200,{
    title:'如何锻炼完美身材2',
    content:'222如何判断自己的髋屈肌（髂腰肌）是否过紧呢？可以用托马斯测试（THOMAS TEST）自测一下<br>'
    +'有关托马斯测试的内容可以翻阅《基础肌动学》髋关节部分或看这篇文章：<br>'
    +'湯瑪斯測試(Thomas test)：髖屈肌的柔軟度如果存在髋屈肌过紧,<br>'
    +'还能不能做仰卧起坐这个动作呢？答案是可以，只不过你需要一些肌肉松解和动作调整。）'
})
mock.onGet('/v1/api/article/cotnent?id=3').reply(200,{
    title:'如何锻炼完美身材3',
    content:'333如何判断自己的髋屈肌（髂腰肌）是否过紧呢？可以用托马斯测试（THOMAS TEST）自测一下<br>'
    +'有关托马斯测试的内容可以翻阅《基础肌动学》髋关节部分或看这篇文章：<br>'
    +'湯瑪斯測試(Thomas test)：髖屈肌的柔軟度如果存在髋屈肌过紧,<br>'
    +'还能不能做仰卧起坐这个动作呢？答案是可以，只不过你需要一些肌肉松解和动作调整。）'
})
mock.onGet('/v1/api/article/cotnent?id=4').reply(200,{
    title:'如何锻炼完美身材4',
    content:'444如何判断自己的髋屈肌（髂腰肌）是否过紧呢？可以用托马斯测试（THOMAS TEST）自测一下<br>'
    +'有关托马斯测试的内容可以翻阅《基础肌动学》髋关节部分或看这篇文章：<br>'
    +'湯瑪斯測試(Thomas test)：髖屈肌的柔軟度如果存在髋屈肌过紧,<br>'
    +'还能不能做仰卧起坐这个动作呢？答案是可以，只不过你需要一些肌肉松解和动作调整。）'
})


mock.onGet('/v1/api/strategy').reply(200,[
    {
        id:1,
        content:'健身攻略'
    },
    {
        id:2,
        content:'长跑攻略'
    },
    {
        id:3,
        content:'减肥攻略'
    },
    {
        id:4,
        content:'游泳攻略'
    }
])


mock.onGet('/v1/api/strategy/article?id=1').reply(200,[
    {
        id:1,
        content:'健身攻略1'
    },
    {
        id:2,
        content:'健身攻略2'
    },
    {
        id:3,
        content:'健身攻略3'
    },
    {
        id:4,
        content:'健身攻略4'
    }
])
mock.onGet('/v1/api/strategy/article?id=2').reply(200,[
    {
        id:1,
        content:'长跑攻略1'
    },
    {
        id:2,
        content:'长跑攻略2'
    },
    {
        id:3,
        content:'长跑攻略3'
    },
    {
        id:4,
        content:'长跑攻略4'
    }
])

mock.onGet('/v1/api/strategy/article?id=3').reply(200,[
    {
        id:1,
        content:'减肥攻略1'
    },
    {
        id:2,
        content:'减肥攻略2'
    },
    {
        id:3,
        content:'减肥攻略3'
    },
    {
        id:4,
        content:'减肥攻略4'
    }
])


mock.onGet('/v1/api/strategy/article?id=4').reply(200,[
    {
        id:1,
        content:'游泳攻略1'
    },
    {
        id:2,
        content:'游泳攻略2'
    },
    {
        id:3,
        content:'游泳攻略3'
    },
    {
        id:4,
        content:'游泳攻略4'
    }
])















mock.onGet('/v1/api/circleTable').reply(200, [
            {
               id:'1',
               name:'跑友圈',
               avatar:'http://wdev.virsical.cn/res/wafertest.com/visitor/8f83f5065283619220a314956f66abfe.jpg',
               userCount:'161',
               dayPost:'321',
               introduce:'介绍介绍介绍'
            },
            {   
               id:'2',
               name:'一起跑步吧',
               avatar:'http://wdev.virsical.cn/res/wafertest.com/visitor/8f83f5065283619220a314956f66abfe.jpg',
               userCount:'312',
               dayPost:'231',
               introduce:'介绍介绍介绍'
            },{
               id:'3',
               name:'一起跑步啦啦啦',
               avatar:'http://wdev.virsical.cn/res/wafertest.com/visitor/8f83f5065283619220a314956f66abfe.jpg',
               userCount:'312',
               dayPost:'231',
               introduce:'介绍介绍介绍'
            },{
               id:'4',
               name:'一起跑步啦啦啦',
               avatar:'http://wdev.virsical.cn/res/wafertest.com/visitor/8f83f5065283619220a314956f66abfe.jpg',
               userCount:'312',
               dayPost:'231',
               introduce:'介绍介绍介绍'
            },{
               id:'5',
               name:'一起跑步啦啦啦',
               avatar:'http://wdev.virsical.cn/res/wafertest.com/visitor/8f83f5065283619220a314956f66abfe.jpg',
               userCount:'312',
               dayPost:'231',
               introduce:'介绍介绍介绍'
            }        
            ]);


mock.onGet('/v1/api/circleMoment').reply(200,[
    {   
         id:'1',
         userName:'张三',
         content:'今天是个好天气',
         images:[],
         video:'',
         time:'1514880584000',
         comment:[]
    },
    {   
         id:'2',
         userName:'李四',
         content:'今天要下雪',
         images:[],
         video:'',
         time:'1514880584000',
         comment:[]
    },
    {
          id:'3',
         userName:'王麻子',
         content:'fucking day',
         images:[],
         video:'',
         time:'1514880584000',
         comment:[]
    },
    {
          id:'4',
         userName:'阿三',
         content:'good day',
         images:[],
         video:'',
         time:'1514880584000',
         comment:[]
    },
     {
          id:'5',
         userName:'阿三',
         content:'good day',
         images:[],
         video:'',
         time:'1514880584000',
         comment:[]
    },
     {
          id:'6',
         userName:'阿三',
         content:'good day',
         images:[],
         video:'',
         time:'1514880584000',
         comment:[]
    }
    ,
     {
          id:'7',
         userName:'阿三',
         content:'good day',
         images:[],
         video:'',
         time:'1514880584000',
         comment:[]
    }
    ,
     {
          id:'8',
         userName:'阿三',
         content:'good day',
         images:[],
         video:'',
         time:'1514880584000',
         comment:[]
    }
    ,
     {
          id:'9',
         userName:'阿三',
         content:'good day',
         images:[],
         video:'',
         time:'1514880584000',
         comment:[]
    }
    ,
     {
          id:'10',
         userName:'阿三',
         content:'good day',
         images:[],
         video:'',
         time:'1514880584000',
         comment:[]
    }

])











export default mock;